package org.example.redis;

import org.redisson.Redisson;
import org.redisson.api.RedissonClient;
import org.redisson.config.Config;

public class RedissonUtil {
    private static RedissonClient redisson;

    static {
        Config config = new Config();
        config.useSingleServer().setAddress("redis://192.168.204.117:6379");
        config.useSingleServer().setPassword("Infra5_Gep0int");
        redisson = Redisson.create(config);
    }

    public static RedissonClient getRedisson() {
        return redisson;
    }
}
